package main

import (
	"github.com/gin-gonic/gin"
	"myschools.me/dingtalk/department"
	"myschools.me/dingtalk/userinfo"
)

func setupRouters(r *gin.Engine) {
	dingtalkGroup := r.Group(`/dingtalk`)
	{
		dingtalkGroup.GET(`/userinfo/*code`, userinfo.UserInfoHandler)
		dingtalkGroup.GET(`/department/list`, department.ListHandler)
		dingtalkGroup.GET(`/department/detail/:id`, department.DetailHandler)
		dingtalkGroup.GET(`/department/userlist`, department.UserlistHandler)
	}
}
